package com.upay.android.util.rest;

import android.content.res.Resources;

import com.upay.android.util.config.PropertyLoader;

public final class UrlHelper {

	/* ---- Constants ---- */
	
	public static String AUTHENTICATE = "upay-web/rest/public/authentication/authenticate";
	public static String CREATE_ACCOUNT = "upay-web/rest/public/authentication/create";
	public static String GROUP_ACCOUNT = "upay-web/rest/private/group/usergroups";
	public static String GET_FIXED_PAYMENT_DETAILS = "upay-web/rest/private/payment/fixed/get";
	public static String SAVE_FIXED_PAYMENT_DETAILS = "upay-web/rest/private/payment/fixed/save";
	public static String GET_WEIGHTED_PAYMENT_DETAILS = "upay-web/rest/private/payment/weighted/get";
	public static String SAVE_WEIGHTED_PAYMENT_DETAILS = "upay-web/rest/private/payment/weighted/save";

	
	/* ---- Business Methods ---- */
	
	public static String getUrl(Resources resources, String requestMapping) {
		StringBuilder url = new StringBuilder();
		url.append(PropertyLoader.getProperty("domain_address", resources));
		url.append(requestMapping);
		return url.toString();
	}
	
}
